package cn.gson.springboot.model.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import cn.gson.springboot.model.pojos.SickRoom;

public interface PatientRoom extends CrudRepository<SickRoom, Integer>{

	//病房和住院联合查询
	//@Query("SELECT s FROM SickRoom s join s.inhospitalReg i  where i.hospId=?1")
	//public SickRoom findSickRoomByhospid(String hospid);
}
